package com.henry.chatkit.demo

class CustomMessage {

    // 自定义消息类型 0-系统
    var customType = 0
    var typeName = getTypeName(customType)

    var title = ""
    var text = ""


    private fun getTypeName(type: Int?): String {
        return when(type) {
            0 -> "系统"
            1 -> "自定义"
            else -> "类型"
        }
    }
}